<%--
 * (c)2012 Andrea Caltroni (andrea.caltroni@pd.infn.it), INFN (www.infn.it)
 *
 * This file is part of the IGI Survey Portlet (from here on shortened to IGISP).
 * IGISP is free software: you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published by the Free 
 * Software Foundation, either version 3 of the License, or (at your option) any 
 * later version.
 *
 * IGISP is distributed in the hope that it will be useful, but WITHOUT ANY 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with IGISP. If not, see <http://www.gnu.org/licenses/>.
 *
--%>
<%@ include file="./init.jsp" %>

<h3><spring:message code="preferences.title"/></h3>

<div class="portlet-body">
    <portlet:actionURL var="savePrefsUrl">
        <portlet:param name="action" value="savePreferences"/>
        <portlet:param name="portletConfiguration" value="true"/>
    </portlet:actionURL>

	<c:if test="${justSaved}">
	    <div class="portlet-msg-success"><spring:message code="preferences.saved"/></div>
	</c:if>

    <form name="<portlet:namespace/>preferencesForm" method="POST" action="${savePrefsUrl}">
    
        <table class="lfr-table">
            <tr>
                <th><spring:message code="prefs.noOf.itemsPerPage"/>: </th>
                <td><input name="<portlet:namespace/>noOfItemsPerPage" value="${noOfItemsPerPage}" size="5" maxlength="5" type="text" /></td>
                <td><liferay-ui:error key="noOfItemsPerPage" message="Invalid number"/></td>
            </tr>
            
            <tr>
                <th><spring:message code="prefs.noOf.userDescsPerPage"/>: </th>
                <td><input name="<portlet:namespace/>noOfUserDescsPerPage" value="${noOfUserDescsPerPage}" size="5" maxlength="5" type="text" /></td>
                <td><liferay-ui:error key="noOfUserDescsPerPage" message="Invalid number"/></td>
            </tr>
        </table>
        
        <div class="lfr-separator">&nbsp;</div>
    
        <div class="lfr-toolbar">
            <%--<input type="submit" value='<spring:message code="button.save"/>' /> --%>
            <button type="submit"><spring:message code="button.save"/></button>
        </div>
        
    </form>

</div>

<div class="lfr-separator">&nbsp;</div>

<div class="portlet-section-footer">
    <a href="<portlet:renderURL portletMode="VIEW"/>"><img title="<spring:message code="button.home"/>" src="<html:imagesPath/>home.png" border=0 /></a>
</div>
